package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author auto
 * @since 2020-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_header_price_item")
public class HeaderPriceItemDo extends Model<HeaderPriceItemDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("header_id")
    private Long headerId;

    @TableField("order_input_id")
    private Long orderInputId;

    @TableField("project_id")
    private Long projectId;

    @TableField("price")
    private Double price;

    @TableField("currency_type")
    private Long currencyType;

    @TableField("tax_flag")
    private Integer taxFlag;

    @TableField("tips")
    private String tips;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
